#ifndef _ICAR_THREAD_H
#define _ICAR_THREAD_H

#ifdef __cplusplus
extern "C" {
#endif

#include "icar_sock.h"

struct cliFds {
	int index;
	fdsets_t **fds;
};

void thread_msg(void *args);

void thread_client(void *args);

#define LOCK_CLIENT_FDS() do { \
	pthread_mutex_lock(&client_fdsets_mutex);	\
	} while ( 0 )

#define UNLOCK_CLIENT_FDS() do { \
	pthread_mutex_unlock(&client_fdsets_mutex);	\
	} while ( 0 )

#ifdef __cplusplus
}
#endif

#endif
